$(function () {
    var demos = [
        {
            name: "NOSQL：",
            pages: [
                {
                    name: "多标签",
                    url: "/up6/nosql/index"
                },
                {
                    name: "单面板",
                    url: "/up6/nosql/panel"
                }]
        },
        {
            name: "上传：",
            pages: [
                {
                    name: "清空数据库",
                    url: "/up6/clear"
                },
                {
                    name: "多标签",
                    url: "/up6/index"
                },
                {
                    name: "单面板",
                    url: "/up6/panel"
                },
                {
                    name: "单文件",
                    url: "/up6/single"
                },
                {
                    name: "vue.js示例",
                    url: "/up6/vue"
                },
                {
                    name: "layer弹窗",
                    url: "/up6/layer"
                },
                {
                    name: "文件管理器示例",
                    url: "/filemgr/index"
                }
            ]
        },
        {
            name: "加密和压缩：",
            pages: [
                {
                    name: "sm4(国密)加密传输",
                    url: "/up6/safe/sm4"
                },
                {
                    name: "sm4(国密)-gzip-加密压缩传输",
                    url: "/up6/safe/sm4/gzip"
                },
                {
                    name: "aes加密传输",
                    url: "/up6/safe/aes"
                },
                {
                    name: "aes-gzip-md5加密传输",
                    url: "/up6/safe/aes/gzip/md5"
                },
                {
                    name: "aes-md5加密传输",
                    url: "/up6/safe/aes/md5"
                },
                {
                    name: "aes-gzip-加密压缩传输",
                    url: "/up6/safe/aes/gzip"
                },
                {
                    name: "gzip-压缩传输",
                    url: "/up6/safe/gzip"
                },
                {
                    name: "zip-压缩传输",
                    url: "/up6/safe/zip"
                }
            ]
        },
        {
            name: "下载：",
            pages: [
                {
                    name: "清空数据库",
                    url: "/down2/clear"
                },
                {
                    name: "下载示例",
                    url: "/down2/index"
                },
                {
                    name: "ligerui示例",
                    url: "/down2/ligerui"
                }
            ]
        }
    ];
    $(demos).each(function (i, n) {
        var tmps = ["<ul>", "<li><b>" + n.name + "</b></li>"];
        $(n.pages).each(function (i, n) {
            tmps.push("<li><a target='_blank' href='" + n.url + "'>" + n.name + "</a></li>");
        });
        tmps.push("</ul>");
        $("#demos").append(tmps.join(""));
    });
});